package com.tbycoder.tby.service;

import com.tbycoder.tby.entity.IposQuestion;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tbycoder.tby.entity.Request.CommonIdRequest;
import com.tbycoder.tby.entity.Request.PublishRequest;
import com.tbycoder.tby.entity.Vo.GetQuestionVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tby
 * @since 2021-05-13
 */
public interface IIposQuestionService extends IService<IposQuestion> {

    /**
     * 获得所有问题和答案
     * @return
     */
    GetQuestionVo getAllQuestion();

    /**
     * 删除对应的问题和答案
     * @param question
     * @return
     */
    boolean deleteQuestion(CommonIdRequest question);

    /**
     * 发表问题和答案
     * @param publishRequest
     */
    void questionAndAnswer(PublishRequest publishRequest);
}
